package com.clerkq.ProgressBar
{
	import com.library.core.IDisposable;
	import com.library.core.UIObject;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	
	// 这个是做为内嵌，在Preload中唯一使用的类
	public class ProgressBarHorizontal extends ProgressBar
	{
		[Embed(source="EmbedSkin.swf", symbol="ProgressBar_Horizontal")]		
		private var Skin:Class;
		
		
		private var _asset:Sprite;
		private var _sptMask:Sprite;
		
		public function ProgressBarHorizontal()
		{
			super();
			
			_asset = new Skin() as Sprite;
			
			addChild(_asset);
			_sptMask = _asset["sptMask"] as Sprite;
			_sptMask.scaleX = 0;
		}
		
		// public //////////////////////////////
        public function setText(text:String):void{
        	//_label.text = text;
        }
		
		override public function SetPercentage(percent:int):void{
			_sptMask.scaleX = percent/100;
		}
        
		override public function Dispose():void	{}
		
	}
}